﻿using QFramework;
using UnityEngine;

namespace Gp.Core {
    public class UICanvasHook : MonoSingleton<UICanvasHook> {
        private Canvas _canvas;

        public Canvas GetCanvas() {
            if (_canvas == null) {
                _canvas = GetComponent<Canvas>();
            }

            return _canvas;
        }
    }
}